package com.sky.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.sky.entity.SetmealDish;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

/**
 * 套餐详情视图对象
 */
@ApiModel("套餐详情信息")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class SetmealVO implements Serializable {

    @ApiModelProperty("套餐ID")
    private Long id;

    @ApiModelProperty("所属分类ID")
    private Long categoryId;

    @ApiModelProperty("套餐名称")
    private String name;

    @ApiModelProperty("套餐价格")
    private BigDecimal price;

    @ApiModelProperty("套餐状态(0:停用 1:启用)")
    private Integer status;

    @ApiModelProperty("套餐描述")
    private String description;

    @ApiModelProperty("套餐图片URL")
    private String image;

    @ApiModelProperty("最后更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @ApiModelProperty("所属分类名称")
    private String categoryName;

    @ApiModelProperty("包含的菜品列表")
    private List<SetmealDish> setmealDishes = new ArrayList<>();
}
